let obj={
    name:"张三",
    sex:"男"
}

Object.defineProperty(obj,"age",{
    value:18,
    enumerable:true, //枚举
    writable:true,  //编辑
    configurable:true,    //删除
    get(){

    },
    set(value){

    }
})